<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core">
	<h:body>
		<ui:composition>
			<div>
				<h:outputLabel for="username" value="#{i18n['generic.username']}" />
				<h:inputText id="username" value="#{addUserBean.username}" required="true" requiredMessage="#{i18n['generic.valueRequired']}" autocomplete="off" validator="#{genericValidationBean.validateUsername}" />
				<span class="error"><h:message for="username" /></span>
			</div>
			<ui:fragment rendered="#{requirePassword}">
				<div>
					<h:outputLabel for="password" value="#{i18n['generic.password']}" />
					<h:inputSecret id="password" value="#{addUserBean.password}" required="true" styleClass="switchVisibility" requiredMessage="#{i18n['generic.valueRequired']}" autocomplete="off" redisplay="true" />
					<span class="error"><h:message for="password" /></span>
				</div>
				<div>
					<h:selectBooleanCheckbox id="passwordChecked" value="#{addUserBean.passwordChecked}" validator="#{genericValidationBean.validatePasswordChecked}" />
					<h:outputLabel for="passwordChecked" value="#{i18n['generic.passwordChecked']}" styleClass="checkboxLabel" />
					<span class="error"><h:message for="passwordChecked" /></span>
				</div>
			</ui:fragment>
			<div>
				<h:selectBooleanCheckbox id="admin" value="#{addUserBean.admin}"/>
				<h:outputLabel for="admin" value="#{i18n['account.admin']}" styleClass="checkboxLabel" />
				<span class="error"><h:message for="admin" /></span>
			</div>
			<div>
				<h:selectBooleanCheckbox id="enabled" value="#{addUserBean.enabled}"/>
				<h:outputLabel for="enabled" value="#{i18n['account.enabled']}" styleClass="checkboxLabel" />
				<span class="error"><h:message for="enabled" /></span>
			</div>
			<div>
				<h:selectBooleanCheckbox id="confirmed" value="#{addUserBean.confirmed}"/>
				<h:outputLabel for="confirmed" value="#{i18n['account.verified']}" styleClass="checkboxLabel" />
				<span class="error"><h:message for="confirmed" /></span>
			</div>
		</ui:composition>
	</h:body>
</html>